<?php include "config.php"; ?>
<?php include "dbconnect.php"; ?>
<div id="tier-2">
					<div id="selection">
						<div class="title">
							<a href="#">selection</a>
						</div>
						<div id="sel-1">
							<div id="bullet-1">
								<img alt="bullet pic" src="/images/bullet_ap.jpg" >
							</div>
							<div id="p-1">
								<p>
									<a href="#" class="style">quy trinh nhan tre:</a> Viec nhan ho
									so moi dien ra tu thang 3 den thang 5 hang nam. Tuy nhien viec
									nhan ho so nay co the se ket thuc som hon du kien neu chi hoi
									da tuyen du so tre theo chi tieu de ra.
								</p>
							</div>
						</div>
						<div id="sel-2">
							<div id="bullet-2">
								<img alt="bullet pic" src="/images/bullet_ap.jpg" >
							</div>
							<div id="p-2">
								<p>
									<a href="#" class="style">ke hoach vang gia:</a> Viec nhan ho
									so moi dien ra tu thang 3 den thang 5 hang nam. Tuy nhien viec
									nhan ho so nay co the se ket thuc som hon du kien neu chi hoi
									da tuyen du so tre theo chi tieu de ra.
								</p>
							</div>
						</div>
						<div class="furtherSel">
							<a href="#" class="read_more">Read More ...</a>
						</div>
					</div>
					<div id="upcomingEvents">
						<img alt="Bongden_bullet" src="/images/upcoming_icon.jpg" >
						<div class="title">
							<a href="#">upcomingEvents</a>
						</div>
						<?php
							$result = mysql_query("SELECT * FROM events ORDER BY ngay_thuc_hien ASC LIMIT 0, 2");
							
							$id = 1;
							while ($row = mysql_fetch_array($result))
							  {
							  	echo "<div id='p$id'>";
								echo "<p>";
								echo "<a href='event_detail.php?id=" . $row['id'] . "' class='style'>" . $row['ten'] . ":</a> " . substr($row['noi_dung'], 0, 100) . " ...";
								echo "</p>";
								echo "</div>";
							  $id++;
							  }
						?>
<!--
						<div id="p1">
							<p>
								<a href="#" class="style">Hoat dong qua tet:</a> Ngay 10 thang 1
								nam 2012, Chi Hoi Ai Tam se thuc hien hoat dong Qua Tet cho cong
								dong nguoi phong cui tai La Gi, Binh Thuan.
							</p>
						</div>
						<div id="p2">
							<p>
								<a href="#" class="style">giai ngan HKII 2011-2012:</a> Ngay 10
								thang 1 nam 2012, Chi Hoi Ai Tam se thuc hien hoat dong Qua Tet
								cho cong dong nguoi phong cui tai La Gi, Binh Thuan.
							</p>
						</div>
-->
						<div class="further">
							<a href="#" class="read_more">Read More ...</a>
						</div>
					</div>
				</div>
<?php include "dbdisconnect.php"; ?>